package com.liliudong.template.common.dto;

import java.util.Objects;

/**
 * 分页查新基础DTO
 *
 * @author ldli5
 * @classname BasePageDTO
 * @date 2024/7/3-9:52
 */
public abstract class BasePageDTO {

	/**
	 * 页码
	 */
	private Long page;

	/**
	 * 大小
	 */
	private Long size;

	public Long getPage() {
		return Objects.isNull(page) ? 1L : page;
	}

	public void setPage(Long page) {
		this.page = page;
	}

	public Long getSize() {
		return Objects.isNull(size) ? 10L : size;
	}

	public void setSize(Long size) {
		this.size = size;
	}
}
